import fetch from '../utils/fetch';

/**
 * 測試反向代理
 * @returns {*}
 */
export function testProxy() {
    return fetch({
      url: '/gi-paas-sd-wbstypesvc/api/service/list',
      method: 'get'
    });
}



/**
 * 測試post請求
 * @returns {*}
 */
export function testPost(data) {
  return fetch({
    url: '/gi-paas-sd-wbstypesvc/api/service/list',
    method: 'post',
    data
  });
}

export function loopUp(data) {
  return fetch({
    url: '/gi-paas-sd-wbstypesvc/api/service/list',
    method: 'get',
    data
  });
}

/**
 * 測試get請求
 * @returns {*}
 */
export function testGet(data) {
  return fetch({
    url: '/gi-paas-sd-wbstypesvc/api/service/list',
    method: 'get'
  });
}

/**
 * 測試put請求
 * @returns {*}
 */
export function testPut(data) {
  return fetch({
    url: '/gi-paas-sd-wbstypesvc/api/service/list',
    method: 'put',
    data
  });
}

